package com.cy.pj.sys.Dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cy.pj.common.vo.SysUserDeptVo;
import com.cy.pj.sys.pojo.SysUser;

@Mapper
public interface SysUserDao {
	int getRowCount( String username);
	
	List<SysUserDeptVo> findPageObjects(
		      String  username,
		      Integer startIndex,
		      Integer pageSize);
	int validById(
			@Param("id")Integer id,
			@Param("valid")Integer valid,
			@Param("modifiedUser")String modifiedUser);
	int insertObject(SysUser entity);
	
	SysUser findUserByUserName(String username);
}
